<#macro "menu" >
  <#if  Session["powerList1"]?exists>
  	<ul class="main-list">
  	<li class="fenlei-box no-bg"><div class="fenlei"></div> </li>
  	<li class="no-bg"><a href="/indexpc"><span>主页</span><i></i><em></em></a></li>
	<#list  Session["powerList1"] as  power1>
		<li class="lev1 nav-one"><a><span>${power1.name}</span><b></b><i class="sanjiao"></i></a></li>
		<#if  Session["powerList2"]?exists>
		 <ul class="lev1-ul">
			<#list  Session["powerList2"] as  power2>
				<#if (power2.parent_id==power1.id)>
                    <li class="lev2">
                        <a href="javascript:;">${power2.name}</a>
                        <i class="sanjiao"></i>
                    </li>
                </#if>    
                    <#if  Session["powerList3"]?exists>
                      <ul class="lev2-ul">
						<#list  Session["powerList3"] as  power3>
						 <#if (power3.parent_id==power2.id)>
                        	<li>
                            	<a href=/${power3.poweraddr} method="post">${power3.name}</a>
                        	</li>
                         </#if>	
                        </#list>
                     </ul>  
				   </#if>        
			</#list>
		 </ul>
		</#if>
	</#list>        
</#if>
</ul>
</#macro>